#include "PlayerModel.h"
#include "GameboardModel.h"
#include "Position.h"
#include "SphericCamera.h"

using namespace osg;

PlayerModel::PlayerModel(void) {}

PlayerModel::PlayerModel(Position* pos) {
	this->pawn = pos;
	this->unplacedWalls = GameboardModel::getInstance()->getBoardSize() + 1;
	camera = new SphericCamera(M_PI/6, (pos->getY() > GameboardModel::getInstance()->getBoardSize()/2. ? M_PI/2 : -M_PI/2));
}

PlayerModel::PlayerModel(Position* pos, int unplacedWalls) {
	this->pawn = pos;
	this->unplacedWalls = unplacedWalls;
	camera = new SphericCamera(M_PI/6, (pos->getY() > GameboardModel::getInstance()->getBoardSize()/2. ? M_PI/2 : -M_PI/2));
}